package com.example.demo.controller;

import jakarta.annotation.PostConstruct;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RestController;

@RestController

public class LogController {
    Logger logger = LoggerFactory.getLogger(LogController.class);
    @PostConstruct
    public void print(){
        logger.trace("我是trace日志");
        logger.debug("我是debug 日志");
        logger.info("我是 Info 日志");
        logger.warn("我是 warn 日志");
        logger.error("我是Error 日志");


    }
}
